<?php
    defined('BASEPATH') or die('No direct script access allow');
    class Article extends MY_Controller
    {
        public function __construct()
        {
            parent::__construct();
            $this->load->model('admin/article_model');
        }
        public function detail()
        {
            $id=$this->uri->segment(2);
            $article=$this->article_model->getArticleByAlias($id);
            $this->load->vars('title',$article->article_title);
            $this->load->vars('article2',$article);
        }
        //get product by category
        
        
    }    
    
?>